package com.ynet.middleground.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户中心和云平台对接日志表
 * </p>
 *
 * @author liwq
 * @since 2021-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ur_cloud_platform_log")
public class CloudPlatformLog extends Model<CloudPlatformLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 调用方(0:中台；1：云平台)
     */
    private Integer callSide;

    /**
     * 调用接口路径
     */
    private String callInterface;

    /**
     * 请求信息
     */
    private String requestMsg;

    /**
     * 返回信息
     */
    private String responseMsg;

    /**
     * 调用状态0：成功1：失败
     */
    private Integer status;

    /**
     * 创建人
     */
    private Integer createBy;

    /**
     * 创建日期
     */
    private LocalDateTime creationDate;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;

    /**
     * 修改人
     */
    private Integer modifiedBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
